<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录失败</title>
<script >
var time = 4;  

function returnUrlByTime() {  
    if(time>0){
    
     window.setTimeout('returnUrlByTime()', 1000);  

     time = time - 1;  

     document.getElementById("layer").innerHTML = time;
    }
}  
</script>
</head>
<body onload="returnUrlByTime()">
  <center>
        <h2><%=session.getAttribute("error") %></h2>
        <p style="font-size:30px">倒数<span id="layer" style="font-size:50px;color:red"> 3 </span>秒跳转到登录！</p>
        <a style="font-size:30px" href="login.jsp">手动跳转</a>
        
     
  </center>
  <%  
        //转向语句  
        response.setHeader("Refresh", "3;URL=login.jsp");  
      
    %>  
</body>
</html>